const {getData} = require('../utils/http.js')


module.exports = {
	type:'get',
	methods:  async ctx =>{
		let data = await getData('get', 'https://api.weixin.qq.com/cgi-bin/token')
		let city = await getData('post', 'http://admin.mumway.com/index/activity/cityList/cityList')

		let channel = await getData('post', `http://admin.mumway.com/api/index/getchannel?name=${city.data[0].name}`)

		ctx.body = {data, city, channel}

	}
}